package com.senven.books.utils;

import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author : longshengyi
 * @description :
 * @createDate : 2024/7/20 21:54
 */
@JsonInclude(JsonInclude.Include.NON_NULL)
@ApiModel(value = "JsonResult",description = "返回结果对象" )
@Data
public class JsonResult<T> {

    /**
     * 返回码
     */
    @ApiModelProperty(value = "返回码(成功：200 ; 失败：其他)")
    private Integer code;
    /**
     * 返回消息
     */
    @ApiModelProperty(value = "返回消息")
    private String msg;
    /**
     * 返回数据
     */
    private T data;

}
